package top.sdaily.core.service;

import top.sdaily.core.mybatis.Conditions;

import java.util.List;

/**
 * Created by soya on 2017/2/15.
 */
public interface BaseService<T> {

    List<T> findList(Conditions<T> conditions);

    T findOne(Conditions<T> conditions);

    T findById(String id);

    int insert(T entity);

    int insertBatch(List<T> entity);

    int update(T entity);

    int delete(Conditions<T> conditions);

    int delete(String id);

}
